\documentclass[a4paper]{article}

\usepackage{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%
% Document
%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document} % begin document

\section{First section}

Write some text here. I want \textit{this} to be in italics. The next \textbf{item} should be bold. I wonder what \emph{emph} does. 
\newline
It is a good idea to compile before you have written too much. Check the output. Save all the time!

Blank spaces and lines in the text make no difference in the pdf.



Good for reading your .tex file.

You do not have to make line-shifts. LaTeX will handle that for you. If you want to limit the use of hyphen you can add these to your preamble

%\hyphenpenalty=5000 % increase latex's penalty for splitting words
%\tolerance=1000 % increase latex's tolerance for spacing

\subsection{Start a subsection}
Special characters can be included: \$ \} \& \_ \# \textbackslash. 
Whenever something fails, google it. 

\subsection{Underline}

Text can be \underline{underlined} using the \textbackslash underline command. 

\subsection{Verbatim}
The text above looks a little weird. We can make it look nicer:
\textbackslash\!\texttt{underline}

\noindent And even nicer by using verbatim 

\begin{verbatim}
\underline
\end{verbatim}

\end{document} % end document
